﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _3.InvalidRangeException
{
    class Program
    {
        static void Main()
        {
            int number = 10;

            if (number > 0)
            {
                throw new InvalidRangeException<int>("Wrong number", 0, 5);
            }
        }
    }
}
